import Vue from 'vue'
import Layout from './components/Layout.vue'
import VueRouter from 'vue-router'
import routes from './routes'
import VueResource from 'vue-resource'

Vue.use(VueRouter)
Vue.use(VueResource)

const router = new VueRouter({
  mode : 'history',
  routes : routes
})

new Vue({
  el: '#layout',
  router,
  render: h => h(Layout)
})
